<?php
class Nc_de_model extends CI_Model {
    public function __construct() {
        $this->load->database();
    }
    
    public function get_nc_de() {
        $query = $this->db->query("SELECT *
                                    FROM
                                        nc_de
                                    ORDER BY
                                        nc_de");
        return $query->result_array();
    }
    
    public function get_nc_de_por_id($idnc_de) {
        $query = $this->db->query("SELECT *
                                    FROM
                                        nc_de
                                    WHERE
                                        idnc_de = $idnc_de");
        return $query->row_array();
    }
}
?>
